<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix">
      <span>关于我</span>
    </div>
    <div class="user-info">
      <div class="box-center">
        <pan-thumb
          :image="user.avator"
          :height="'100px'"
          :width="'100px'"
          :zIndex="1000"
        >
          <div>Hello</div>
          {{ user.roles }}
        </pan-thumb>
      </div>
      <div class="box-center">
        <div class="user-name text-center">{{ user.name }}</div>
      </div>
    </div>
    <div class="user-message">
      <div class="user-ediction user-section">
        <div class="user-header">
           <b class="el-icon-reading"></b>
        <span>教育经历</span>
        </div>
        <div class="user-body">
          <div class="user-text">
            本科毕业于淮南师范学院电子商务专业
          </div>
        </div>
      </div>
      <div class="user-skill user-section">
        <div class="user-header">
          <b class="el-icon-edit"></b>
          <span>技能</span>
        </div>
        <div class="user-body">
          <div class="progress">
            <span>Vue</span>
            <el-progress :percentage="70" :format="format"></el-progress>
          </div>
             <div class="progress">
            <span>javasctipr</span>
            <el-progress :percentage="80" :format="format"></el-progress>
          </div>
             <div class="progress">
            <span>css</span>
            <el-progress :percentage="70" :format="format"></el-progress>
          </div>
        </div>
      </div>
    </div>
  </el-card>
</template>

<script>
import PanThumb from '_components/PanThumb'
export default {
  components: { PanThumb },
  props: {
    user: {
      type: Object,
      default: () => {
        return {
          name: '',
          avator: '',
          roles: ''
        }
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.box_card {
  margin-bottom: 20px;
}
.box-center {
  margin: 0 auto;
  text-align: center;
  padding-top: 10px;
}
.user-message {
  margin-top: 20px;
  color: #606266;
  span {
    padding-left: 4px;
  }
  .user-section {
    font-size: 14px;
    padding: 15px 0;
    .user-header{
      border-bottom: 1px solid #dfe6ec;
      padding-bottom: 1px;
      margin-bottom: 10px;
      font-weight: bold;
    }
  }
}
</style>
